package com.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;


/**
 * (User)表实体类
 *
 * @author makejava
 * @since 2020-11-26 13:42:55
 */
@SuppressWarnings("serial")
@Setter
@Getter
@ToString
@TableName("t_user_")
public class User extends Model<User> {
    @TableId(type = IdType.ASSIGN_ID)
    private Long userId;
    private String name;
    private Integer age;
    private Integer sex;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
    private Long money;
}